home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: 13 April 1997
- // Author: gf
- //
- //
- // Procedure Name:
- // DynParticlesMenu
- //
- // Description:
- // Create the DYNAMICS->Particles
- //
- // Input Arguments:
- // parent to parent the menu to.
- //
- // Return Value:
- // None.
- //
-
- source spriteWizard.mel;
-
- global proc DynParticlesMenu( string $parent )
- {
- setParent -m $parent;
- if( `menu -q -ni $parent` != 0 ) {
- //
- // Menu is built already - just return
- //
- return;
- }
-
- menuItem -l "Particle Tool"
- -annotation "Particle Tool: Create particles on the grid or live object"
- -c "ParticleTool"
- -i "particle.xpm"
- particlesCreateItem;
- menuItem -optionBox true -i "particle.xpm"
- -annotation "Particle Tool Option Box"
- -l "Particle Tool Option Box"
- -c "ParticleToolOptions"
- particlesCreateDialogItem;
-
- menuItem -d true;
-
- menuItem -l "Create Emitter"
- -annotation "Create Emitter: Create an emitter on the grid or live object"
- -c "CreateEmitter"
- -dmc "performDynamics 1 Emitter 2"
- -i "posEmitter.xpm"
- createEmitterItem;
- menuItem -optionBox true -i "posEmitter.xpm"
- -annotation "Create Emitter Option Box"
- -l "Create Emitter Option Box"
- -c "CreateEmitterOptions"
- createEmitterDialogItem;
-
- menuItem -l "Emit from Object"
- -annotation "Add Emitter: Select the object(s) to emit particles"
- -c "EmitFromObject"
- -dmc "performDynamics 0 Emitter 2"
- -i "emitter.xpm"
- addEmitterItem;
- menuItem -optionBox true -i "emitter.xpm"
- -annotation "Emit from Object Option Box"
- -l "Emit from Object Option Box"
- -c "EmitFromObjectOptions"
- addEmitterDialogItem;
-
- menuItem -l "Use Selected Emitter"
- -annotation "Use Selected Emitter: Select particle object (s), then select emitter to create particles for them"
- -c "UseSelectedEmitter"
- -i "connectEmit.xpm"
- connEmitItem;
-
- menuItem -l "Per-Point Emission Rates"
- -annotation "Per-Point Emission Rates: Enable per-point rates for selected emitter"
- -c "PerPointEmissionRates"
- -i "emission.xpm"
- addPPItem;
-
- menuItem -divider true;
-
- menuItem -l "Make Collide"
- -annotation "Make Collide: Select particle object, then select one geometry object to collide with"
- -c "MakeCollide"
- -dmc "performDynamics 0 Collision 2"
- -i "collision.xpm"
- addCollisionItem;
- menuItem -optionBox true -i "collision.xpm"
- -annotation "Make Collide Option Box"
- -l "Make Collide Option Box"
- -c "MakeCollideOptions"
- addCollisionDialogItem;
-
- menuItem -l "Particle Collision Events..."
- -annotation "Particle Collision Events: Display Collision Events Editor"
- -c "ParticleCollisionEvents"
- -i "collisionEvents.xpm"
- eventEdWinItem;
-
- menuItem -divider true;
-
- menuItem -l "Goal"
- -annotation "Goal: Select first the particle and then the goal object"
- -c "Goal"
- -dmc "performDynamics 0 Goal 2"
- -i "goal.xpm"
- addGoalItem;
- menuItem -optionBox true -i "goal.xpm"
- -annotation "Goal Option Box"
- -l "Goal Option Box"
- -c "GoalOptions"
- addGoalDialogItem;
-
- menuItem -l "Instancer (Replacement)"
- -annotation "Particle Instancer: Select first the replacement objects and then the particle"
- -c "ParticleInstancer"
- -dmc "performDynamics 0 ParticleInstancer 2"
- -i "instancer.xpm"
- particleInstancerItem;
- menuItem -optionBox true
- -i "instancer.xpm"
- -annotation "Particle Instancer Option Box"
- -l "Particle Instancer Option Box"
- -c "ParticleInstancerOptions"
- particleInstancerDialogItem;
-
- menuItem -l "Sprite Wizard..."
- -annotation "Sprite Wizard: Select the particle object"
- -c "spriteWizardMenu"
- //-i "instancer.xpm"
- spriteWizardItem;
-
- menuItem -l "Connect to Time"
- -annotation "Connect to Time: Select particle shape"
- -c "ConnectToTime"
- connectToTimeItem;
-
- }
-